package com.k52group.vn.micromarket.classes;

public class Message {
	int Id, UserId_sender, Userid_reciever;
	String msg, user_name, gcm_regid, date, phone, your_company;

	public Message(int id, int userId_sender, int userid_reciever, String msg, String user_name) {
		super();
		Id = id;
		UserId_sender = userId_sender;
		Userid_reciever = userid_reciever;
		this.msg = msg;
		this.user_name = user_name;
	}

	public Message(int id, int userId_sender, int userid_reciever, String msg, String user_name, String gcm_regid) {
		super();
		Id = id;
		UserId_sender = userId_sender;
		Userid_reciever = userid_reciever;
		this.msg = msg;
		this.user_name = user_name;
		this.gcm_regid = gcm_regid;
	}

	public String getYour_company() {
		if (user_name == null)
			return "Guest";
		if (user_name.equals(""))
			return "Guest";
		return your_company;
	}

	public void setYour_company(String your_company) {
		this.your_company = your_company;
	}

	public String getPhone() {
		if (phone == null)
			return "";
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getGcm_regid() {
		return gcm_regid;
	}

	public void setGcm_regid(String gcm_regid) {
		this.gcm_regid = gcm_regid;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public int getId() {
		return Id;
	}

	public void setId(int id) {
		Id = id;
	}

	public int getUserId_sender() {
		return UserId_sender;
	}

	public void setUserId_sender(int userId_sender) {
		UserId_sender = userId_sender;
	}

	public int getUserid_reciever() {
		return Userid_reciever;
	}

	public void setUserid_reciever(int userid_reciever) {
		Userid_reciever = userid_reciever;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
